#ifndef _SHAPE_H_
#define _SHAPE_H_
#include "vector.h"
class Shape
{
public:
	Shape(void);
	virtual ~Shape(void);
	virtual bool intersect(Point o, Vector u, Point *hit,Point *out)=0;
	void Init( float amb[3],float dif[3], float spe[3], float shine, float refl,int sindex);
	Shape( float amb[3], float dif[3], float spe[3], float shine, float refl ,int sindex);
private:
	float mat_ambient[3];    
	float mat_diffuse[3];
	float mat_specular[3];
	float mat_shineness;

	float reflectance;       
	 int index;              
};

#endif